83f909bfa5f100a8b15861676edb215d925c32af,components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringBootRunner.java,CamelTestContextManager,CamelTestContextManager,#Class#,56
Before Change
addIfMissingType(list, new CamelSpringTestContextLoaderTestExecutionListener());
addIfMissingType(list, new DisableJmxTestExecutionListener());
addIfMissingType(list, new CamelSpringBootExecutionListener());
addIfMissingType(list, new StopWatchTestExecutionListener());
OrderComparator.sort(list);
registerTestExecutionListeners(list);
}
After Change
System.setProperty("skipStartingCamelContext", "true");
// is Camel already registered
if (!alreadyRegistered()) {
// inject Camel first, and then disable jmx and add the stop-watch
List<TestExecutionListener> list = getTestExecutionListeners();
list.add(0, new CamelSpringTestContextLoaderTestExecutionListener());
list.add(1, new DisableJmxTestExecutionListener());
list.add(2, new CamelSpringBootExecutionListener());
list.add(3, new StopWatchTestExecutionListener());
}
}